<template>
	<view class="padding">
		<!-- <view class="margin-top" v-for="(item,index) in dateTimeList">
			<view class="flex ">
				<view style="border: 1rpx solid #4063FE;overflow: hidden;" class="flex radius-xs">
					<view class="padding-xs">
						{{index+1}}
					</view>
					<view style="background-color: #4063FE;" class="text-white align-center padding-lr ">
						{{item.title}}
					</view>
				</view>
			</view> -->
		<view class="text-gray text-sm margin-top">
			<rich-text :nodes="dateTimeList.content"></rich-text>
		</view>
	</view>

	</view>
</template>

<script>
	import {
		content1,
		content2,
		content3,
		content4,
		content5,
		content6,
		content7,
		content8,
		content9,
		content10,
		content11,
		content12,
		content13
	} from '../../../common/path.js'
	export default {
		data() {
			return {
				dateTimeList: [],
				optionId: 1,
				contentData: '',
				title: ''
			}
		},
		onLoad(option) {
			this.optionId = option.id
			if (this.optionId == 1) {
				this.contentData = content1
			} else if (this.optionId == 2) {
				this.contentData = content2
			} else if (this.optionId == 3) {
				this.contentData = content3
			} else if (this.optionId == 4) {
				this.contentData = content4
			} else if (this.optionId == 5) {
				this.contentData = content5
			} else if (this.optionId == 6) {
				this.contentData = content6
			} else if (this.optionId == 7) {
				this.contentData = content7
			} else if (this.optionId == 8) {
				this.contentData = content8
			} else if (this.optionId == 9) {
				this.contentData = content9
			} else if (this.optionId == 10) {
				this.contentData = content10
			} else if (this.optionId == 11) {
				this.contentData = content11
			} else if (this.optionId == 12) {
				this.contentData = content12
			} else if (this.optionId == 13) {
				this.contentData = content13
			}
			this.content()

		},
		methods: {
			// 日期与时间
			content() {
				let content = this.contentData
				this.$axios.axios('POST', content, {})
					.then(res => {
						console.log(res.data.title)
						this.dateTimeList = res.data
						uni.setNavigationBarTitle({
							title: res.data.title + ''
						})
					})
					.catch(err => {
						console.log(err)
					})
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
